-- GENERATED SPELL FOR [Shalewing] --


function spell0_28879(pUnit, Event) --@Ravenous Pathogen,n/a--
pUnit:FullCastSpellOnTarget(49980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28879', 30314, 1)
end

function Sorts_28879(pUnit, Event)
local choix_sorts_28879 = math.random(0, 0)
if choix_sorts_28879 == 0 then
pUnit:RegisterEvent('spell0_28879', 1, 1)
end
end

function mob28879_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28879', math.random(1500, 3000), 1)
end

function mob28879_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28879_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28879_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28879, 1, 'mob28879_Action')
RegisterUnitEvent(28879, 2, 'mob28879_Leave')
RegisterUnitEvent(28879, 3, 'mob28879_Kill')
RegisterUnitEvent(28879, 4, 'mob28879_Die')
